package com.good.msgsys.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 项目实体
 *
 * @author junlong
 * @date 2021/1/4 16:44
 */
@Entity
@Table(name = "project")
@ApiModel("项目实体Project")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Project implements Serializable {
    @Id
    @ApiModelProperty("项目id")
    private String id;
    @ApiModelProperty("项目编号")
    private String num;
    @ApiModelProperty("项目名称")
    private String name;
    @ApiModelProperty(value = "申请人(当前用户)id", required = true)
    @Column(name = "applicant_id")
    private String userId;
    @ApiModelProperty("项目来源")
    private String froms;
    @ApiModelProperty("申请日期")
    private Date applicantDate;
    @ApiModelProperty("项目类型：0青年项目，1攻关项目，2重点项目，3国家项目，4政府项目")
    private Integer type;
    @ApiModelProperty("项目预算")
    private Double budget;
    @ApiModelProperty("参与人员ids")
    private String groups;
    @ApiModelProperty("项目状态：0未提交立项申请，1已提交，待立项审核，2已立项，3已提交结项申请，待审核，4项目通过，5项目不通过，6已删除")
    private Integer state;
}
